#ifndef CONFIGURATIONS_H
#define CONFIGURATIONS_H

#include <QSettings>

class Configurations
{
public:
    Configurations(QSettings *settings);

    QString appName;
    QString dfCollector;
    QStringList dfRTIndicatorSerial;
    QStringList dfRTIndicatorUDP;
    int plotPointNum;
    QStringList dfMagnetic;

    QString ip;
    int port;
    int timeout;

    QString serialNum;
    int baudRate;
    QString parity;
    int dataBit;
    QString stopBit;
    QString startCMD;
    QString stopCMD;
    float timerInterval;

private:
    QSettings *settings;
    void parseSettings();
};

#endif // CONFIGURATIONS_H
